package com.zx.map.service;

import java.util.Date;
import java.util.List;

import com.zx.map.dao.model.User;
import com.zx.map.dao.model.UserExample;

public interface UserService {

	public int delete(String id);

	public int add(User user);

	public int update(User user);

	public List<User> query(String shopId,Date begin,Date end);
	
	public long countUsers(String merchantId, Date startDate, Date endDate);
	/**
	 * 指定日期之前，所有的用户
	 * @param merchantId
	 * @param date
	 * @return
	 */
	public long countUsersBefore(String merchantId, Date date);
}
